# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Laurent Carlier <lordheavym@gmail.com>
# Contributor: Brad Fanella <bradfanella@archlinux.us>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Jeff Mickey <jeff@archlinux.org>
# Contributor: tardo <tardo@nagi-fanboi.net>

pkgname=chuck
pkgver=1.4.2.0
pkgrel=1
pkgdesc='Concurrent, on-the-fly audio programming language'
arch=(loong64 x86_64)
url='https://chuck.cs.princeton.edu/'
license=(GPL)
depends=(jack libsndfile)
groups=(pro-audio)
source=("https://chuck.cs.princeton.edu/release/files/$pkgname-$pkgver.tgz")
b2sums=('cb15a91208e90f383ef241dd3da541c9103bb3d7eac27fd43707ba4f665f47d81bf60f33df13e0d804f2e64720bd857e85a9fe9108667ef4d3809efc13558c05')

build() {
  make -C "$pkgname-$pkgver/src" linux-jack
}

package() {
  cd $pkgname-$pkgver
  install -d "$pkgdir/usr/share/doc/$pkgname"
  cp -r examples "$pkgdir/usr/share/doc/$pkgname"
  install -Dm755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"
}

# getver: chuck.cs.princeton.edu/release
